projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7554590
)
(get_boot_time): Don't use BUFSIZ.
author
Karl Heuer
<kwzh@gnu.org>
Tue, 23 Feb 1999 22:09:47 +0000
(22:09 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Tue, 23 Feb 1999 22:09:47 +0000
(22:09 +0000)
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index fc00647baba5402e00ec4b1bf997fad3468ff58d..c80f75ce92427541cf5e10b932275ed54b40d890 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-116,12
+116,12
@@
get_boot_time ()
while ((fd = open ("/proc/uptime", O_RDONLY)) >= 0)
{
- char buf[
BUFSIZ
];
+ char buf[
100
];
int res;
double upsecs;
time_t uptime;
- read (fd, buf,
BUFSIZ
);
+ read (fd, buf,
sizeof buf
);
close (fd);
res = sscanf (buf, "%lf", &upsecs);